package com.smallcc.service;

import com.smallcc.dataobject.OrderMaster;
import com.smallcc.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author 晓风过境
 * @TODO    订单service
 * @date 2018/3/29 13:44
 * @day 29
 * @return $text$
 * @title ${CLASS_NAME}
 * @project_name sell
 */
public interface OrderService {
    /*.创建订单*/
    OrderDTO create(OrderDTO orderDTO);
    /*.查询单个订单*/
    OrderDTO findOne(String orderId);
    /*.查询订单列表.*/
    Page<OrderDTO> findList(String buyerOpenid, Pageable pageable);
    /*.取消订单*/
    OrderDTO cancel(OrderDTO orderDTO);
    /*.完结订单*/
    OrderDTO finish(OrderDTO orderDTO);
    /*.支付订单*/
    OrderDTO paid(OrderDTO orderDTO);
    /**.查询订单*/
    Page<OrderDTO> findList(Pageable pageable);

}
